home *** CD-ROM | disk | FTP | other *** search
- // Copyright (C) 1997-2002 Alias|Wavefront,
- // a division of Silicon Graphics Limited.
- //
- // The information in this file is provided for the exclusive use of the
- // licensees of Alias|Wavefront. Such users have the right to use, modify,
- // and incorporate this code into other products for purposes authorized
- // by the Alias|Wavefront license agreement, without fee.
- //
- // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
- // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
- // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
- // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
- // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
- // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
- // PERFORMANCE OF THIS SOFTWARE.
- //
- //
- // Alias|Wavefront Script File
- //
- // Creation Date: May 21, 1997
- // Author: sw
- //
- // Procedure Name:
- // AEsamplerInfoTemplate
- //
- // Description Name;
- // Creates the attribute editor controls for the samplerInfo Node
- //
- // Input Value:
- // nodeName
- //
- // Output Value:
- // None
- //
-
- global proc uvDimingControl ( string $nodeName )
- {
- string $nodeAttr = $nodeName + ".outUvType";
- int $outUvType = `getAttr $nodeAttr`;
- if( $outUvType == 1 ) {
- editorTemplate -dimControl $nodeName "normalizationMethod" false;
- editorTemplate -dimControl $nodeName "normalizationValue" false;
- } else {
- editorTemplate -dimControl $nodeName "normalizationMethod" true;
- editorTemplate -dimControl $nodeName "normalizationValue" true;
- }
- }
-
- global proc AEparticleSamplerInfoTemplate ( string $nodeName )
- {
- AEswatchDisplay $nodeName;
- editorTemplate -beginScrollLayout;
- editorTemplate -beginLayout "Editable Sampler Info Attributes" -collapse 0;
- editorTemplate -addControl "outUvType" uvDimingControl;
- editorTemplate -addControl "normalizationMethod";
- editorTemplate -addControl "normalizationValue";
- editorTemplate -addControl "inverseOutUv";
- editorTemplate -endLayout;
-
- editorTemplate -beginLayout "Common Read-Only Attributes" -collapse 1;
- editorTemplate -addControl "outColor";
- editorTemplate -addControl "outTransparency";
- editorTemplate -addControl "outIncandescence";
- editorTemplate -endLayout;
-
- editorTemplate -beginLayout "More Read-Only Scalar Attributes" -collapse 1;
- editorTemplate -addControl "ageNormalized";
- editorTemplate -addControl "colorRed";
- editorTemplate -addControl "colorGreen";
- editorTemplate -addControl "colorBlue";
- editorTemplate -addControl "opacityPP";
- editorTemplate -addControl "opacity";
- editorTemplate -addControl "particleId";
- editorTemplate -addControl "finalLifespanPP";
- editorTemplate -addControl "lifespanPP";
- editorTemplate -addControl "lifespan";
- editorTemplate -addControl "age";
- editorTemplate -addControl "birthTime";
- editorTemplate -addControl "parentU";
- editorTemplate -addControl "parentV";
- editorTemplate -addControl "collisionU";
- editorTemplate -addControl "collisionV";
- editorTemplate -addControl "radiusPP";
- editorTemplate -addControl "radius";
- editorTemplate -endLayout;
-
- editorTemplate -beginLayout "More Read-Only Vector Attributes" -collapse 1;
- editorTemplate -addControl "rgbPP";
- editorTemplate -addControl "incandescencePP";
- editorTemplate -addControl "incandescence";
- editorTemplate -addControl "acceleration";
- editorTemplate -addControl "force";
- editorTemplate -addControl "position";
- editorTemplate -addControl "worldPosition";
- editorTemplate -addControl "birthPosition";
- editorTemplate -addControl "birthWorldPosition";
- editorTemplate -addControl "velocity";
- editorTemplate -addControl "worldVelocity";
- editorTemplate -endLayout;
-
- editorTemplate -beginLayout "More Read-Only User Defined Float Attributes" -collapse 1;
- editorTemplate -addControl "userScalar1PP";
- editorTemplate -addControl "userScalar2PP";
- editorTemplate -addControl "userScalar3PP";
- editorTemplate -addControl "userScalar4PP";
- editorTemplate -addControl "userScalar5PP";
- editorTemplate -endLayout;
-
- editorTemplate -beginLayout "More Read-Only User Defined Vector Attributes" -collapse 1;
- editorTemplate -addControl "userVector1PP";
- editorTemplate -addControl "userVector2PP";
- editorTemplate -addControl "userVector3PP";
- editorTemplate -addControl "userVector4PP";
- editorTemplate -addControl "userVector5PP";
- editorTemplate -endLayout;
-
- editorTemplate -suppress "particleAttrArray";
- editorTemplate -suppress "outUvCoord";
-
- // include/call base class/node attributes
- AEdependNodeTemplate $nodeName;
-
- editorTemplate -addExtraControls;
- editorTemplate -endScrollLayout;
- }
-